<div class="hover <? echo $index % 2 ? 'even' : 'odd'; ?>">

	<?php echo CHtml::link(
		'<img src="images/abip/' . $data->typeIcon . '" class="float-right" />',
		array('view', 'id'=>$data->_id)
	); ?>

	<b><?php echo CHtml::encode($data->getAttributeLabel('name')); ?>:</b>
	<?php echo CHtml::encode($data->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('roomId')); ?>:</b>
	<?php echo CHtml::encode($data->room->name); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('typeId')); ?>:</b>
	<?php echo CHtml::encode($data->typeName); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('hasRange')); ?>:</b>
	<?php echo CHtml::encode($data->hasRangeName); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('host')); ?>:</b>
	<?php echo CHtml::encode($data->host); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('channel')); ?>:</b>
	<?php echo CHtml::encode($data->channel); ?>
	<br />

	<?php
	$menu = array(
		array(
			'label'=>'<img src="images/fugue/magnifier-zoom.png" ' .
				'title="View" />',
			'url'=>array('view', 'id'=>$data->_id)
		),
		array(
			'label'=>'<img src="images/fugue/pencil.png" title="Update" />',
			'url'=>array('update', 'id'=>$data->_id)
		),
		array(
			'label'=>'<img src="images/fugue/cross-script.png" ' .
				'title="Delete" />',
			'url'=>'#',
			'linkOptions'=>array(
				'submit'=>array('delete','id'=>$data->_id),
				'confirm'=>'Are you sure you want to delete this item?'
			)
		),
	);

	$this->beginWidget('zii.widgets.CPortlet');
	$this->widget(
		'zii.widgets.CMenu',
		array(
			'items'=>$menu,
			'encodeLabel'=>false,
			'htmlOptions'=>array('class'=>'operations'),
		)
	);
	$this->endWidget();
	?>

	<div style="clear: both"></div>

</div>